package com.cmy;

import java.util.Scanner;

public class PetsTest {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Pets ps=new Pets();
        System.out.println("欢迎来到宠物店");
        System.out.println("请输入宠物的名字");
        ps.setName(input.next());
        System.out.println("请输入要领养的宠物类型 狗狗 企鹅");
        ps.setType(input.next());
        System.out.println("请选择性别");
        ps.setSex(input.next());
        System.out.println("请输入健康值,不能小于60");
        ps.setHealthy(input.nextInt());
        System.out.println(ps.toString());
        System.out.println(ps.getName()+ps.getSex()+ps.getType()+ps.getHealthy());

    }
}
